home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
utility
/
jckey_io.zip
/
KEY.HLP
< prev
next >
Wrap
Text File
|
1996-10-05
|
3KB
|
72 lines
=========================================================================
key.hlp - Help for Key.exe
=========================================================================
Some ideas:
-usually serves to get rid of "opening messages" (like "press return to
start program", etc). Or to start a program with certain features which
are not available as command-line parameters. Eg. with a program
for address books, write a batch-file which starts the program and
immediately starts searching for %1, by "pressing" the keys via
key.exe
-writing a batch to archive %1 with pkzip/arj/etc. and at the end
including:
key w "del %1"
Eg. with doskey you can then simply press ESC if the screen-output
indicates that s.th went wrong with pkzip/arj, etc., otherwise
simply press RETURN to run the del %1 command.
Thus giving "default" commands which only require to press
return or ESC. If pressing Return when running doskey, they
will then also be available via doskey for repeated usage, etc.
-DOSKEY
Note that if a command is too long to fit into the keyboard buffer,
with doskey running, you could eg. try defining a doskey macro,
and put this macro in the buffer instead,
eg:
doskey testecho=echo ...This is a very long command
key w "testecho"
After running the above batch file outputting "testecho" as a
suggestion, eg. press RETURN/ENTER to run "testecho" or ESC for
doskey to "reset" the command-line.
You might even use a "temporary" macro, i.e. if after having
entered s.th once, it shouldn't "stay" as a doskey macro, try
eg:
@echo off
doskey tmpEcho=echo ...This is a very long command $t doskey tmpEcho=
key w "tmpEcho" 7181
After running the above batch file - If you then press CURSOR-UP,
and RETURN/ENTER the above "temporary" doskey macro "tmpEcho" has
already been "deleted".
See "help doskey" for more info on doskey.
(
$t separates two commands, and
doskey tmpEcho=
"un-does" a doskey macro, by setting it to "nothing".
)
MORE INFO
For more info on Doskey usage, and on Dos-programming, eg. a program
which uses Doskey - see also files DOSKEY*.* in my uploaded file
LOADER.ZIP at GO BPASCAL, library section 17 "TP/BP DOS Prog"
((
BPASCAL being an "old go word" to what is currently Go Delphi
))
COPYRIGHT, etc.
Key.exe written using Borland's TurboPascal for DOS.
(Copyright)Armin Schmitt at 100552.1041@compuserve.com
Nov-1994
v960901